<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>Hexo博客搭建指南 | XC's Blog</title><meta name="keywords" content="Hexo"><meta name="author" content="XC's Blog"><meta name="copyright" content="XC's Blog"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="Hexo博客搭建超级指南环境部署工作2.1 安装Node.js1.进入官网选择对应的系统下载：官网：https:&#x2F;&#x2F;nodejs.org&#x2F;en&#x2F;download&#x2F;2.安装选好路径，完成安装3.检查打开cmd或者powershell,输入: 12node -vnpm -v  显示版本号，即安装无误  npm为Node.js的包管理工具  2.2 安装Git1.进入官网下载官网：https:&#x2F;&#x2F;git"><meta property="og:type" content="article"><meta property="og:title" content="Hexo博客搭建指南"><meta property="og:url" content="https://webxc.eu.org/post/3340407448/index.html"><meta property="og:site_name" content="XC&#39;s Blog"><meta property="og:description" content="Hexo博客搭建超级指南环境部署工作2.1 安装Node.js1.进入官网选择对应的系统下载：官网：https:&#x2F;&#x2F;nodejs.org&#x2F;en&#x2F;download&#x2F;2.安装选好路径，完成安装3.检查打开cmd或者powershell,输入: 12node -vnpm -v  显示版本号，即安装无误  npm为Node.js的包管理工具  2.2 安装Git1.进入官网下载官网：https:&#x2F;&#x2F;git"><meta property="og:locale" content="zh_CN"><meta property="og:image" content="https://npm.elemecdn.com/webxc@1.0.0/cover/cover6.jpg"><meta property="article:published_time" content="2021-01-02T08:00:00.000Z"><meta property="article:modified_time" content="2023-08-30T18:00:49.033Z"><meta property="article:author" content="XC&#39;s Blog"><meta property="article:tag" content="Hexo"><meta name="twitter:card" content="summary"><meta name="twitter:image" content="https://npm.elemecdn.com/webxc@1.0.0/cover/cover6.jpg"><link rel="shortcut icon" href="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><link rel="canonical" href="https://webxc.eu.org/post/3340407448/"><link rel="preconnect" href="//cdn.jsdelivr.net"><link rel="preconnect" href="//busuanzi.ibruce.info"><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://npm.elemecdn.com/@fortawesome/fontawesome-free@6.2.0/css/all.min.css" media="print" onload='this.media="all"'><link rel="stylesheet" href="https://npm.elemecdn.com/node-snackbar/dist/snackbar.min.css" media="print" onload='this.media="all"'><link rel="stylesheet" href="https://npm.elemecdn.com/@fancyapps/ui/dist/fancybox.css" media="print" onload='this.media="all"'><script>const GLOBAL_CONFIG={root:"/",algolia:void 0,localSearch:{path:"/search.xml",preload:!1,languages:{hits_empty:"找不到您查询的内容：${query}"}},translate:void 0,noticeOutdate:void 0,highlight:{plugin:"highlighjs",highlightCopy:!0,highlightLang:!0,highlightHeightLimit:!1},copy:{success:"吾辈宣布,你的剪切板已被占领",error:"呀~复制失败,请在尝试下",noSupport:"对不起,你的浏览器不支持"},relativeDate:{homepage:!1,post:!1},runtime:"",date_suffix:{just:"刚刚",min:"分钟前",hour:"小时前",day:"天前",month:"个月前"},copyright:{limitCount:60,languages:{author:"作者: XC's Blog",link:"链接: ",source:"来源: XC's Blog",info:"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},lightbox:"fancybox",Snackbar:{chs_to_cht:"您已切换为繁体",cht_to_chs:"您已切换为简体",day_to_night:"您已切换为深色主题",night_to_day:"您已切换为浅色主题",bgLight:"#3b70fc",bgDark:"#121212",position:"bottom-center"},source:{justifiedGallery:{js:"https://npm.elemecdn.com/flickr-justified-gallery/dist/fjGallery.min.js",css:"https://npm.elemecdn.com/flickr-justified-gallery/dist/fjGallery.css"}},isPhotoFigcaption:!1,islazyload:!0,isAnchor:!0}</script><script id="config-diff">var GLOBAL_CONFIG_SITE={title:"Hexo博客搭建指南",isPost:!0,isHome:!1,isHighlightShrink:!1,isToc:!0,postUpdate:"2023-08-30 18:00:49"}</script><noscript><style>#nav{opacity:1}.justified-gallery img{opacity:1}#post-meta time,#recent-posts time{display:inline!important}</style></noscript><script>(e=>{e.saveToLocal={set:function(e,t,o){if(0===o)return;const n=864e5*o,a={value:t,expiry:(new Date).getTime()+n};localStorage.setItem(e,JSON.stringify(a))},get:function(e){const t=localStorage.getItem(e);if(!t)return;const o=JSON.parse(t);if(!((new Date).getTime()>o.expiry))return o.value;localStorage.removeItem(e)}},e.getScript=e=>new Promise(((t,o)=>{const n=document.createElement("script");n.src=e,n.async=!0,n.onerror=o,n.onload=n.onreadystatechange=function(){const e=this.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,t())},document.head.appendChild(n)})),e.activateDarkMode=function(){document.documentElement.setAttribute("data-theme","dark"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#0d0d0d")},e.activateLightMode=function(){document.documentElement.setAttribute("data-theme","light"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#ffffff")};const t=saveToLocal.get("theme");"dark"===t?activateDarkMode():"light"===t&&activateLightMode();const o=saveToLocal.get("aside-status");void 0!==o&&("hide"===o?document.documentElement.classList.add("hide-aside"):document.documentElement.classList.remove("hide-aside"));/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)&&document.documentElement.classList.add("apple")})(window)</script><link rel="stylesheet" href="https://cdn1.tianli0.top/gh/web-xc/My-blog-CSS/mgi.css"><link rel="stylesheet" href="https://cdn1.tianli0.top/gh/web-xc/My-blog-CSS/mg111.css"><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.16/css/mg2.css"><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.11/css/styless.css"><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.11/css/styles.css"><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.11/css/font.css"><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.15/css/font2.css"><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.12/css/swiper/swiper.min.css" media="print" onload='this.media="all"'><link rel="stylesheet" href="https://npm.elemecdn.com/webxc@1.0.12/css/swiper/swiperstyle.css" media="print" onload='this.media="all"'><meta name="generator" content="Hexo 6.3.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg" onerror='onerror=null,src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="avatar"></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">95</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">25</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">25</div></a></div><hr><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw iconfont icon-shouye"></i> <span>首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw iconfont icon-shijian"></i> <span>时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw iconfont icon-biaoqian"></i> <span>标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw iconfont icon-fenlei"></i> <span>分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw iconfont icon-lianxiwomen"></i> <span>友联</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw iconfont icon-iconzhengli-"></i> <span>关于</span></a></div><div class="menus_item"><a class="site-page group hide" href="javascript:void(0);"><i class="fa-fw iconfont icon-a-wangzhanchaojilianjiehulianwang"></i> <span>推荐</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="http://www.inode.club/"><i class="fa-fw fa-sharp fa-solid fa-square-rss"></i> <span>程序员指南</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://ife.baidu.com/"><i class="fa-fw fa-brands fa-vuejs"></i> <span>前端技术学园</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.yuque.com/tademanong/ag7q4n"><i class="fa-fw fa-solid fa-users"></i> <span>前端技术圈</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.code-nav.cn/"><i class="fa-fw fa-solid fa-shop"></i> <span>编程导航</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://q.shanyue.tech/"><i class="fa-fw fa-brands fa-square-js"></i> <span>每日一题</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://fanyouf.gitee.io/u1word/#/h5"><i class="fa-fw fa-solid fa-headphones"></i> <span>前端必会单词</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://site.51git.cn/render/gonav/4.html"><i class="fa-fw iconfont icon-wangzhandingzhi"></i> <span>网址导航</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.webxc.eu.org/music/"><i class="fa-fw iconfont icon-musical-note"></i> <span>音乐解锁</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image:url('https://npm.elemecdn.com/webxc@1.0.0/cover/cover6.jpg')"><nav id="nav"><span id="blog_name"><div class="back-home-button" tabindex="-1"><i class="back-home-button-icon fas fa-grip-vertical"></i><div class="back-menu-list-groups"><div class="back-menu-list-group"><div class="back-menu-list-title">项目</div><div class="back-menu-list"><a class="back-menu-item" href="/" title="前往博客主页" target="_blank" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">主站</span></a><a class="back-menu-item" href="https://e.webxc.eu.org/" rel="external nofollow" title="前往学习笔记" target="_blank" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">学习笔记</span></a><a class="back-menu-item" href="https://v.webxc.eu.org/" rel="external nofollow" title="VuePress学习文档" target="_blank" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">VuePress文档</span></a><a class="back-menu-item" href="https://b.webxc.eu.org/" rel="external nofollow" title="旧站Hexo" target="_blank" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">旧站Hexo</span></a><a class="back-menu-item" href="https://gridea.webxc.eu.org/" rel="external nofollow" title="Gridea笔记" target="_blank" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">Gridea笔记</span></a><a class="back-menu-item" href="https://c.webxc.eu.org/" rel="external nofollow" title="魔改Hexo" target="_blank" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">魔改Hexo</span></a></div></div><div class="back-menu-list-group"><div class="back-menu-list-title">博客镜像</div><div class="back-menu-list"><a class="back-menu-item" href="https://blog.webxc.eu.org/" title="Vercel镜像" target="_blank" rel="noopener nofollow" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">Vercel镜像</span></a><a class="back-menu-item" href="https://webxc.tk/" title="Netlify镜像" target="_blank" rel="noopener nofollow" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">Netlify镜像</span></a><a class="back-menu-item" href="https://web-xc.gitee.io/" title="Gitee镜像" target="_blank" rel="noopener nofollow" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">Gitee镜像</span></a><a class="back-menu-item" href="https://cf.webxc.eu.org/" title="Cloudflare镜像" target="_blank" rel="noopener nofollow" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">Cloudflare镜像</span></a><a class="back-menu-item" href="https://render.webxc.eu.org/" title="Render镜像" target="_blank" rel="noopener nofollow" one-link-mark="yes"><img class="back-menu-item-icon" src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg"><span class="back-menu-item-text">Render镜像</span></a></div></div></div></div><a id="site-name" href="/"><div class="title">XC's Blog</div><i class="fa-solid fa-house"></i></a></span><div class="mask-name-container"><center id="name-container"><a id="page-name" href="javascript:btf.scrollToDest(0, 500)">PAGE_NAME</a></center></div><div id="menus"><div class="nav-button" id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i> <span>搜索</span></a></div><div class="nav-button" id="darkmode_navswitch"><a class="darkmode_switchbutton" type="button" title="浅色和深色模式转换" onclick="switchDarkMode()"><i class="fas fa-adjust"></i></a></div><div class="nav-button" id="nav-totop"><a class="totopbtn"><i class="fas fa-arrow-up"></i><span id="percent" onclick="btf.scrollToDest(0,500)">0</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw iconfont icon-shouye"></i> <span>首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw iconfont icon-shijian"></i> <span>时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw iconfont icon-biaoqian"></i> <span>标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw iconfont icon-fenlei"></i> <span>分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw iconfont icon-lianxiwomen"></i> <span>友联</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw iconfont icon-iconzhengli-"></i> <span>关于</span></a></div><div class="menus_item"><a class="site-page group hide" href="javascript:void(0);"><i class="fa-fw iconfont icon-a-wangzhanchaojilianjiehulianwang"></i> <span>推荐</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="http://www.inode.club/"><i class="fa-fw fa-sharp fa-solid fa-square-rss"></i> <span>程序员指南</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://ife.baidu.com/"><i class="fa-fw fa-brands fa-vuejs"></i> <span>前端技术学园</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.yuque.com/tademanong/ag7q4n"><i class="fa-fw fa-solid fa-users"></i> <span>前端技术圈</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.code-nav.cn/"><i class="fa-fw fa-solid fa-shop"></i> <span>编程导航</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://q.shanyue.tech/"><i class="fa-fw fa-brands fa-square-js"></i> <span>每日一题</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://fanyouf.gitee.io/u1word/#/h5"><i class="fa-fw fa-solid fa-headphones"></i> <span>前端必会单词</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://site.51git.cn/render/gonav/4.html"><i class="fa-fw iconfont icon-wangzhandingzhi"></i> <span>网址导航</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.webxc.eu.org/music/"><i class="fa-fw iconfont icon-musical-note"></i> <span>音乐解锁</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Hexo博客搭建指南</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-01-02T08:00:00.000Z" title="发表于 2021-01-02 08:00:00">2021-01-02</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-08-30T18:00:49.033Z" title="更新于 2023-08-30 18:00:49">2023-08-30</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/Hexo/">Hexo</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span data-flag-title="Hexo博客搭建指南"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="twikoo_visitors"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h3 id="Hexo博客搭建超级指南"><a href="#Hexo博客搭建超级指南" class="headerlink" title="Hexo博客搭建超级指南"></a>Hexo博客搭建超级指南</h3><h4 id="环境部署工作"><a href="#环境部署工作" class="headerlink" title="环境部署工作"></a>环境部署工作</h4><h4 id="2-1-安装Node-js"><a href="#2-1-安装Node-js" class="headerlink" title="2.1 安装Node.js"></a>2.1 安装Node.js</h4><p>1.进入官网选择对应的系统下载：<br>官网：<a target="_blank" rel="noopener" href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a><br><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715163331.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715163331.png" alt="img"></a><br>2.安装<br>选好路径，完成安装<br>3.检查<br>打开<code>cmd</code>或者<code>powershell</code>,输入:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">node -v</span><br><span class="line">npm -v</span><br></pre></td></tr></table></figure><p>显示版本号，即安装无误</p><blockquote><p>npm为Node.js的包管理工具</p></blockquote><h4 id="2-2-安装Git"><a href="#2-2-安装Git" class="headerlink" title="2.2 安装Git"></a>2.2 安装Git</h4><p>1.进入官网下载<br>官网：<a target="_blank" rel="noopener" href="https://git-scm.com/downloads">https://git-scm.com/downloads</a><br>2.安装<br>选好路径，完成安装<br>3.检查<br>打开git bash，输入：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git --version</span><br></pre></td></tr></table></figure><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715170132.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715170132.png" alt="img"></a></p><h4 id="2-3-注册Github账号"><a href="#2-3-注册Github账号" class="headerlink" title="2.3 注册Github账号"></a>2.3 注册Github账号</h4><p>1.Github官网<a target="_blank" rel="noopener" href="https://github.com/">https://github.com</a>,注册账号<br>2.新建项目</p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715171105.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715171105.png" alt="img"></a></p><p>项目名字为<code>你的昵称.github.io</code>，例如：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">//我的昵称是Justlovesmile</span><br><span class="line">所以我的项目名称为Justlovesmile.github.io</span><br></pre></td></tr></table></figure><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715170812.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715170812.png" alt="img"></a></p><p>3.代码库设置</p><p>创建好之后，保存<code>&lt;&gt;code</code>内的SSH，即：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git@github.com:XXXXXXXXX/XXXXXXXXX.github.io.git</span><br></pre></td></tr></table></figure><p>点击右侧的<code>Settings</code></p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715171759.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715171759.png" alt="img"></a></p><p>向下找到<code>Gihub pages</code>,点击<code>Launch automatic page generator</code>，<code>Github</code>将会自动替你创建出一个<code>pages</code>的页面。 如果配置没有问题，大约几分钟之后，<code>yourname.github.io</code>这个网址就可以正常访问了</p><p>5.推荐开启强制使用https</p><h4 id="2-4-安装Hexo"><a href="#2-4-安装Hexo" class="headerlink" title="2.4 安装Hexo"></a>2.4 安装Hexo</h4><p>1.在合适的位置，如<code>E:/hexo</code>，安装<code>hexo-cli</code>,输入：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd /e/hexo/</span><br><span class="line">npm install hexo-cli -g</span><br></pre></td></tr></table></figure><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715172419.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715172419.png" alt="img"></a></p><p>再安装<code>hexo</code></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo --save</span><br></pre></td></tr></table></figure><p>安装完成后，检查</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo -v</span><br></pre></td></tr></table></figure><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715172614.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715172614.png" alt="img"></a></p><p>2.初始化一个文件夹：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">cd /e/hexo/</span><br><span class="line">hexo init</span><br><span class="line">npm install</span><br></pre></td></tr></table></figure><p>3.生成Hexo页面：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo g</span><br></pre></td></tr></table></figure><p>4.启动服务：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo s</span><br></pre></td></tr></table></figure><p>默认是<code>localhost:4000</code>，打开浏览器输入即可</p><h4 id="2-5-推送到Github"><a href="#2-5-推送到Github" class="headerlink" title="2.5 推送到Github"></a>2.5 推送到Github</h4><p>1.配置个人信息</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global user.name &quot;XXXX&quot;</span><br><span class="line">git config --global user.email &quot;XXXXXXXXX@XXX.com&quot;</span><br></pre></td></tr></table></figure><p>2.生成密钥</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -C &quot;XXXXXXXXX@XXX.com&quot;</span><br></pre></td></tr></table></figure><p>3.查看<code>id_rsa.pub</code>文件，并整个复制</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat ~/.ssh/id_rsa.pub</span><br></pre></td></tr></table></figure><p>4.然后再在<code>Github</code>中添加<code>ssh key</code></p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715173551.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715173551.png" alt="img"></a></p><p>5.修改hexo根目录下的文件<code>_config.yml</code>中的deploy，添加之前保存的ssh：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repository: </span><br><span class="line">	github: git@github.com:Justlovesmile/Justlovesmile.github.io.git</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure><p>6.上传到github：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo d -g</span><br></pre></td></tr></table></figure><p>如果没有hexo-deployer-git，安装</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure><p>7.查看blog,<code>https://username.github.io</code></p><h2 id="3-Hexo基础"><a href="#3-Hexo基础" class="headerlink" title="3. Hexo基础"></a>3. Hexo基础</h2><h3 id="3-1-写博客"><a href="#3-1-写博客" class="headerlink" title="3.1 写博客"></a>3.1 写博客</h3><p>1.新建文章</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">HAXE</span><br><span class="line">hexo new post &#x27;我的第一篇文章&#x27;</span><br></pre></td></tr></table></figure><p>2.hexo自动生成一个md文件，修改md内容<br>头部如：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">YAML</span><br><span class="line">---</span><br><span class="line">title: postName #文章页面上的显示名称</span><br><span class="line">date: 2020-03-10 12:30:16 #文章生成时间，一般不改，当然也可以任意修改</span><br><span class="line">categories: 默认分类 #分类</span><br><span class="line">tags: [tag1,tag2,tag3] #文章标签，可空，多标签请用格式，注意冒号:后面有个空格</span><br><span class="line">description: 摘要</span><br><span class="line">---</span><br></pre></td></tr></table></figure><p>3.在头部下面即可写文章内容</p><blockquote><p>markdown，支持html和其自带的语法。Markdown是一种可以使用普通文本编辑器编写的标记语言，通过简单的标记语法，它可以使普通文本内容具有一定的格式。</p></blockquote><h4 id="3-2-新建页面"><a href="#3-2-新建页面" class="headerlink" title="3.2 新建页面"></a>3.2 新建页面</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">HAXE</span><br><span class="line">hexo new page &quot;music&quot;</span><br></pre></td></tr></table></figure><p>会在source文件夹中生成music文件夹，其内的index.md为页面内容</p><h4 id="3-3-常用基本命令"><a href="#3-3-常用基本命令" class="headerlink" title="3.3 常用基本命令"></a>3.3 常用基本命令</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">LIVECODESERVER</span><br><span class="line">hexo new &quot;文章&quot;</span><br><span class="line">hexo new post &quot;文章&quot;</span><br><span class="line">hexo new page &quot;页面&quot;</span><br><span class="line"></span><br><span class="line">hexo clean #清除缓存，每次重新部署时最好执行</span><br><span class="line">hexo g #生成静态页面</span><br><span class="line">hexo s #本地端口，默认4000运行</span><br><span class="line">hexo s -p 5000 # 端口5000</span><br><span class="line">hexo d #部署</span><br><span class="line">hexo deploy #部署</span><br><span class="line">1C</span><br><span class="line">#为了方便，每次准备推送时,可以👇</span><br><span class="line">hexo cl &amp;&amp; hexo g &amp;&amp; hexo d</span><br></pre></td></tr></table></figure><h4 id="4-Hexo进阶"><a href="#4-Hexo进阶" class="headerlink" title="4. Hexo进阶"></a>4. Hexo进阶</h4><h4 id="4-1-推荐编辑器"><a href="#4-1-推荐编辑器" class="headerlink" title="4.1 推荐编辑器"></a>4.1 推荐编辑器</h4><p>方便后续魔改内容</p><ol><li>VSCode <a target="_blank" rel="noopener" href="https://code.visualstudio.com/">https://code.visualstudio.com/</a></li><li>Sublime Text <a target="_blank" rel="noopener" href="http://www.sublimetext.com/">http://www.sublimetext.com/</a></li></ol><h4 id="4-2-更换主题"><a href="#4-2-更换主题" class="headerlink" title="4.2 更换主题"></a>4.2 更换主题</h4><p>1.因为自带的主题并不好看，所以可以更换主题，常见主题的很多，例如butterfly</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">AWK</span><br><span class="line">cd /e/hexo/</span><br><span class="line">git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly</span><br></pre></td></tr></table></figure><p>2.修改hexo根目录下的<code>_config.yml</code>中的 <code>theme: landscape</code>改成<code>theme： butterfly</code> ,(注意冒号：后面有一个空格)</p><h4 id="4-3-注册Coding账号"><a href="#4-3-注册Coding账号" class="headerlink" title="4.3 注册Coding账号"></a>4.3 注册Coding账号</h4><p>1.由于国内访问github的速度较慢，因此可以通过双部署同时部署到Coding<a target="_blank" rel="noopener" href="https://coding.net/%EF%BC%8C%E5%90%8C%E6%A0%B7%E6%B3%A8%E5%86%8C%E8%B4%A6%E5%8F%B7%EF%BC%8C%E6%96%B0%E5%BB%BA%E9%A1%B9%E7%9B%AE%EF%BC%8C%E9%A1%B9%E7%9B%AE%E5%90%8D%E9%9A%8F%E6%84%8F">https://coding.net/，同样注册账号，新建项目，项目名随意</a><br><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715175443.png"><img src="" data-lazy-src="" alt="img"></a><br>2.创建好后，同样记住<code>SSH</code><br>3.修改hexo根目录下的文件<code>_config.yml</code>中的deploy，添加之前保存的ssh：<br>例如我的：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">STYLUS</span><br><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repository: </span><br><span class="line">    github: git@github.com:Justlovesmile/Justlovesmile.github.io.git</span><br><span class="line">    coding: git@e.coding.net:justlovesmile/justlovesmile.top.git</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure><p>4.在Coding中保存你的密钥，方法同Github</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ARCADE</span><br><span class="line">cat ~/.ssh/id_rsa.pub</span><br></pre></td></tr></table></figure><p>5.下次<code>hexo d -g</code>部署后,开启<code>静态网站</code>，然后可以通过其提供的<code>//xxxxxxx.coding-pages.com</code>访问。（第一次记得点，<code>立即部署</code>）</p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715180119.png"><img src="" data-lazy-src="" alt="img"></a></p><p>6.推荐开启强制使用https</p><h4 id="4-4-注册Gitee账号"><a href="#4-4-注册Gitee账号" class="headerlink" title="4.4 注册Gitee账号"></a>4.4 注册Gitee账号</h4><p>1.除了Coding外，网内访问速度较快的还有码云<a target="_blank" rel="noopener" href="https://gitee.com/%EF%BC%8C%E5%90%8C%E6%A0%B7%E6%B3%A8%E5%86%8C%E8%B4%A6%E5%8F%B7%EF%BC%8C%E6%96%B0%E5%BB%BA%E9%A1%B9%E7%9B%AE%60yourname%60">https://gitee.com/，同样注册账号，新建项目`yourname`</a><br>2.创建好后，同样记住<code>SSH</code><br>3.修改hexo根目录下的文件<code>_config.yml</code>中的deploy，添加之前保存的ssh：<br>例如我的：</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">LESS</span><br><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repository: </span><br><span class="line">    gitee: git@gitee.com:justlovesmile/justlovesmile.git</span><br><span class="line">    coding: git@e.coding.net:justlovesmile/justlovesmile.top.git</span><br><span class="line">    github: git@github.com:Justlovesmile/Justlovesmile.github.io.git</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure><p>4.在Gitee中保存你的密钥，方法同Github</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ARCADE</span><br><span class="line">cat ~/.ssh/id_rsa.pub</span><br></pre></td></tr></table></figure><p>5.开启GiteePages服务，Gitee只能免费使用gitee.io域名,其他的域名要收费，并且免费版每次部署后，需要手动点击更新来更新网站内容<br><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715181243.png"><img src="" data-lazy-src="" alt="img"></a><br>5.推荐开启强制使用https</p><h4 id="4-5-绑定域名"><a href="#4-5-绑定域名" class="headerlink" title="4.5 绑定域名"></a>4.5 绑定域名</h4><p>1.在阿里云<a target="_blank" rel="noopener" href="https://wanwang.aliyun.com/%E8%B4%AD%E4%B9%B0%E8%87%AA%E5%B7%B1%E5%96%9C%E6%AC%A2%E7%9A%84%E5%9F%9F%E5%90%8D">https://wanwang.aliyun.com/购买自己喜欢的域名</a></p><p>2.在阿里云控制台找到<code>云解析DNS</code></p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715185711.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715185711.png" alt="img"></a></p><p>找到自己购买的域名,点击<code>解析设置</code></p><p>添加记录</p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715185838.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20200715185838.png" alt="img"></a></p><p>3.如果多部署了，可以设置多条</p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715190408.png"><img src="" data-lazy-src="" alt="img"></a></p><p>一条给github.io，一条给coding-pages.com等等</p><p>4.再返回到对应的部署页面，修改解析域名</p><ul><li>Github的在仓库的<code>Settings--Github_Pages--Custon_domain</code></li><li>Coding的<code>静态网站-设置-自定义域名</code></li></ul><h4 id="4-6-安装插件"><a href="#4-6-安装插件" class="headerlink" title="4.6 安装插件"></a>4.6 安装插件</h4><p>1.安装hexo插件</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">MIPSASM</span><br><span class="line">npm install hexo-generator-sitemap --save</span><br><span class="line">npm install hexo-generator-baidu-sitemap --save</span><br><span class="line">npm install hexo-generator-feed --save</span><br></pre></td></tr></table></figure><p>2.在hexo根目录下的文件<code>_config.yml</code>中添加</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">DTS</span><br><span class="line">Plugins: # 在该区域添加两个插件名称</span><br><span class="line">  - hexo-generator-sitemap</span><br><span class="line">  - hexo-generator-baidu-sitemap</span><br><span class="line">  - hexo-generator-feed</span><br><span class="line"># 自动生成sitemap</span><br><span class="line">sitemap:</span><br><span class="line">  path: sitemap.xml</span><br><span class="line">baidusitemap:</span><br><span class="line">  path: baidusitemap.xml</span><br></pre></td></tr></table></figure><p>3.更多插件见<a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/86111745.html">Hexo插件推荐</a></p><h4 id="4-7-添加robots-txt"><a href="#4-7-添加robots-txt" class="headerlink" title="4.7 添加robots.txt"></a>4.7 添加robots.txt</h4><p>1.在hexo根目录下的source文件夹中，创建一个名为robots.txt的文件<br>2.内容为</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">DTS</span><br><span class="line">User-agent: * </span><br><span class="line">Allow: /</span><br><span class="line">Allow: /categories/</span><br><span class="line">Allow: /tags/</span><br><span class="line">Allow: /archives/</span><br><span class="line"></span><br><span class="line">Disallow: /js/</span><br><span class="line">Disallow: /css/</span><br><span class="line">Disallow: /images/</span><br><span class="line">Disallow: /img/</span><br><span class="line">Disallow: /lib/</span><br><span class="line"></span><br><span class="line">Sitemap: https://XXXXXXXXXXX.XXX/sitemap.xml</span><br><span class="line">Sitemap: https://XXXXXXXXXXX.XXX/baidusitemap.xml</span><br></pre></td></tr></table></figure><h4 id="4-8-创建百度站长账号"><a href="#4-8-创建百度站长账号" class="headerlink" title="4.8 创建百度站长账号"></a>4.8 创建百度站长账号</h4><p>1.进入百度站长<a target="_blank" rel="noopener" href="https://ziyuan.baidu.com/%EF%BC%8C%E6%B3%A8%E5%86%8C%E8%B4%A6%E5%8F%B7%EF%BC%8C%E7%99%BB%E5%BD%95">https://ziyuan.baidu.com/，注册账号，登录</a><br>2.点击用户中心-站点管理-添加网站</p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/image.png"><img src="" data-lazy-src="" alt="img"></a></p><p>3.验证<br>（1）若选择文件验证，则下载文件到根目录下的source文件夹中，并在文件内容最上面添加三行</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">YAML</span><br><span class="line">---</span><br><span class="line">layout: false</span><br><span class="line">---</span><br></pre></td></tr></table></figure><p>（2）若选择HTML标签验证，需要找到主题下的head文件位置，添加其给的html代码，（一般在<code>/themes/xxxxxx/layout/**/head.pug(ejs)</code>内)</p><p>（3）若选择CNAME验证，操作和绑定域名操作一样，看其给的说明即可</p><p>4.推送你的网址，使之更快收录<br>点击左侧<code>资源提交-普通收录</code>可以选择三种方式提交网址</p><h4 id="4-9-创建百度-x2F-谷歌统计账号"><a href="#4-9-创建百度-x2F-谷歌统计账号" class="headerlink" title="4.9 创建百度&#x2F;谷歌统计账号"></a>4.9 创建百度&#x2F;谷歌统计账号</h4><p>1.现在绝大部分国内主题集成了百度统计<a target="_blank" rel="noopener" href="https://tongji.baidu.com/%E5%92%8C[%E8%B0%B7%E6%AD%8C%E7%BB%9F%E8%AE%A1](https://search.google.com/)%E5%8A%9F%E8%83%BD%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%B2%A1%E6%9C%89%E5%8F%AF%E4%BB%A5%E8%87%AA%E8%A1%8C%E5%9C%A8head%E6%96%87%E4%BB%B6%E5%86%85%E6%B7%BB%E5%8A%A0%EF%BC%8C%E5%92%8C%E4%B8%8A%E9%9D%A2%E7%9A%84html%E6%A0%87%E7%AD%BE%E9%AA%8C%E8%AF%81%E7%9B%B8%E4%BC%BC">https://tongji.baidu.com/和[谷歌统计](https://search.google.com/)功能，如果没有可以自行在head文件内添加，和上面的html标签验证相似</a></p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715193338.png"><img src="" data-lazy-src="" alt="img"></a></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">XML</span><br><span class="line">&lt;script&gt;</span><br><span class="line">var _hmt = _hmt || [];</span><br><span class="line">(function() &#123;</span><br><span class="line">  var hm = document.createElement(&quot;script&quot;);</span><br><span class="line">  hm.src = &quot;https://hm.baidu.com/hm.js?a2ee893562999ebad688b0d82daa100a&quot;;</span><br><span class="line">  var s = document.getElementsByTagName(&quot;script&quot;)[0]; </span><br><span class="line">  s.parentNode.insertBefore(hm, s);</span><br><span class="line">&#125;)();</span><br><span class="line">&lt;/script&gt;</span><br></pre></td></tr></table></figure><p>其中问号<code>?</code>之后的一串数字为你的统计id</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">INI</span><br><span class="line">hm.src = &quot;https://hm.baidu.com/hm.js?a2ee893562999ebad688b0d82daa100a&quot;;</span><br></pre></td></tr></table></figure><p>2.谷歌同理，不过需要翻墙才能进去</p><h4 id="4-10-CDN图床"><a href="#4-10-CDN图床" class="headerlink" title="4.10 CDN图床"></a>4.10 CDN图床</h4><p>1.博客中往往会使用到很多图片，如果全部都保存在博客中，那肯定是不行的，推荐使用<code>Github+Jsdelivr+PicGo</code>搭建免费图床<br>2.在Github中创建一个新仓库<code>CDN</code>，名字随意<br>3.生成Token<br>在右上角个人设置处（不是仓库设置）依次选择<code>Settings</code>-<code>Developer settings</code>-<code>Personal access tokens</code>-<code>Generate new token</code>，勾选<code>repo</code>，然后点击<code>Generate token</code>生成一个<code>Token</code></p><p><strong>注意这个Token只会显示一次，自己先保存下来，或者等后面配置好PicGo后再关闭此网页</strong></p><p>4.配置PicGo，使用jsDelivr的CDN<br>(1)下载<code>PicGo</code> <a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/picgo/releases">https://github.com/Molunerfinn/picgo/releases</a><br>(2)设置仓库名<br>(3)设置分支名<br>(4)设置Token<br>(5)指定存储路径<br>(6)设定自定义域名</p><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20200715200322.png"><img src="" data-lazy-src="" alt="img"></a></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">VALA</span><br><span class="line">#每次上传后,生成图片路径</span><br><span class="line">自定义域名+/+储存路径+上传的图片名</span><br></pre></td></tr></table></figure><h3 id="5-主题配置总结"><a href="#5-主题配置总结" class="headerlink" title="5. 主题配置总结"></a>5. 主题配置总结</h3><h3 id="5-1-Ayer主题修改–适用ejs类型的主题"><a href="#5-1-Ayer主题修改–适用ejs类型的主题" class="headerlink" title="5.1 Ayer主题修改–适用ejs类型的主题"></a>5.1 Ayer主题修改–适用ejs类型的主题</h3><h3 id="5-1-1-随机博客封面"><a href="#5-1-1-随机博客封面" class="headerlink" title="5.1.1 随机博客封面"></a>5.1.1 随机博客封面</h3><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/27301.html">Hexo博客美化之随机封面</a></p><h3 id="5-1-2-添加二级菜单"><a href="#5-1-2-添加二级菜单" class="headerlink" title="5.1.2 添加二级菜单"></a>5.1.2 添加二级菜单</h3><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/14357.html">Hexo博客添加二级菜单</a></p><h3 id="5-1-3-添加公告板"><a href="#5-1-3-添加公告板" class="headerlink" title="5.1.3 添加公告板"></a>5.1.3 添加公告板</h3><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/57206.html">Hexo博客美化之添加公告板</a></p><h3 id="5-2-Butterfly主题–适用pug类型的主题"><a href="#5-2-Butterfly主题–适用pug类型的主题" class="headerlink" title="5.2 Butterfly主题–适用pug类型的主题"></a>5.2 Butterfly主题–适用pug类型的主题</h3><ul><li>看Butterfly作者的教程<a target="_blank" rel="noopener" href="https://butterfly.js.org/">https://butterfly.js.org/</a></li><li>看小康博客<a target="_blank" rel="noopener" href="https://www.antmoe.com/posts/a811d614/index.html">https://www.antmoe.com/posts/a811d614/index.html</a></li></ul><h2 id="6-主题魔改"><a href="#6-主题魔改" class="headerlink" title="6. 主题魔改"></a>6. 主题魔改</h2><h3 id="6-1-页脚养鱼🐟"><a href="#6-1-页脚养鱼🐟" class="headerlink" title="6.1 页脚养鱼🐟"></a>6.1 页脚养鱼🐟</h3><ul><li>摘取自<a target="_blank" rel="noopener" href="https://xiabor.com/714f.html">木槿：Hexo大结局</a></li></ul><p>1.在<code>\themes\butterfly\layout\includes\footer.pug</code>最后添加这句话</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">PLAINTEXT</span><br><span class="line">#jsi-flying-fish-container.container</span><br><span class="line"></span><br><span class="line">style.</span><br><span class="line">  @media only screen and (max-width: 767px)&#123;</span><br><span class="line">    #sidebar_search_box input[type=text]&#123;width:calc(100% - 24px)&#125;</span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure><p>2.然后添加js文件，如果是butterfly在主题配置的inject处添加即可</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">HTML</span><br><span class="line">&lt;script data-pjax src=&quot;https://cdn.jsdelivr.net/gh/Justlovesmile/CDN@latest/js/fish.js&quot;&gt;&lt;/script&gt;</span><br></pre></td></tr></table></figure><p>3.修改样式，butterfly在<code>themes\butterfly\source\css\_layout\footer.styl</code>，这一部分对应修改</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line">YAML</span><br><span class="line"></span><br><span class="line">#footer</span><br><span class="line">  position: relative</span><br><span class="line">  background: $light-blue</span><br><span class="line">  background-attachment: local</span><br><span class="line">  background-position: bottom</span><br><span class="line">  background-size: cover</span><br><span class="line"></span><br><span class="line">  if hexo-config(&#x27;footer_bg&#x27;) != false</span><br><span class="line">    &amp;:before</span><br><span class="line">      position: absolute</span><br><span class="line">      width: 100%</span><br><span class="line">      height: 100%</span><br><span class="line">      background-color: alpha($dark-black, .1)</span><br><span class="line">      content: &#x27;&#x27;</span><br><span class="line"></span><br><span class="line">#footer-wrap</span><br><span class="line">  position: absolute</span><br><span class="line">  padding: 1.2rem 1rem 1.4rem</span><br><span class="line">  color: $light-grey</span><br><span class="line">  text-align: center</span><br><span class="line">  left: 0</span><br><span class="line">  right: 0</span><br><span class="line">  top:0</span><br><span class="line">  bottom: 0</span><br></pre></td></tr></table></figure><h4 id="6-2-valine评论"><a href="#6-2-valine评论" class="headerlink" title="6.2 valine评论"></a>6.2 valine评论</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/27831.html">博客美化之valine</a></p><h4 id="6-3-博客文章加密"><a href="#6-3-博客文章加密" class="headerlink" title="6.3 博客文章加密"></a>6.3 博客文章加密</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/43010.html">添加博客加密</a>: <code>文章添加密码</code>功能</p><h4 id="6-4-打字机效果"><a href="#6-4-打字机效果" class="headerlink" title="6.4 打字机效果"></a>6.4 打字机效果</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/7e7ef81c.html">花里胡哨的打字机js</a></p><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/24067.html">Type.js打字机效果</a>: 添加<code>打字机效果</code></p><h4 id="6-5-图标，动态图标，网页运行时间，全站黑白，鼠标点击特效，网页动态标题，樱花，音效"><a href="#6-5-图标，动态图标，网页运行时间，全站黑白，鼠标点击特效，网页动态标题，樱花，音效" class="headerlink" title="6.5 图标，动态图标，网页运行时间，全站黑白，鼠标点击特效，网页动态标题，樱花，音效"></a>6.5 图标，动态图标，网页运行时间，全站黑白，鼠标点击特效，网页动态标题，樱花，音效</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/56163.html">博客中能用到的代码</a>: 关于<code>font awesome图标</code>字体库，使用<code>动态图标</code>，添加<code>网页运行时间</code>，<code>全站变黑白</code>，<code>鼠标点击特效</code>，<code>网页标题的动态效果</code>，<code>网页樱花特效</code>，<code>鼠标触动音乐特效</code></p><h4 id="6-6-旋转小人，每日诗句"><a href="#6-6-旋转小人，每日诗句" class="headerlink" title="6.6 旋转小人，每日诗句"></a>6.6 旋转小人，每日诗句</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/15391.html">博客中能用到的代码（二）</a>: 添加<code>旋转小人</code>和<code>每日诗句</code></p><h4 id="6-7-展示pdf"><a href="#6-7-展示pdf" class="headerlink" title="6.7 展示pdf"></a>6.7 展示pdf</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/7376.html">Hexo竟然可以展示PDF</a></p><h4 id="6-8-插件汇总"><a href="#6-8-插件汇总" class="headerlink" title="6.8 插件汇总"></a>6.8 插件汇总</h4><p><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/86111745.html">Hexo插件总结推荐</a></p><h4 id="6-9-前端禁止右键，F12，F5"><a href="#6-9-前端禁止右键，F12，F5" class="headerlink" title="6.9 前端禁止右键，F12，F5"></a>6.9 前端禁止右键，F12，F5</h4><ul><li>在文件中添加以下代码</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">HTML</span><br><span class="line">&lt;script&gt;</span><br><span class="line">function unmouse()&#123;	</span><br><span class="line">	document.oncontextmenu = new Function(&quot;return false;&quot;);</span><br><span class="line">	document.onkeydown = document.onkeyup = document.onkeypress = function(event) &#123;</span><br><span class="line">		var e = event || window.event || arguments.callee.caller.arguments[0];</span><br><span class="line">		if (e &amp;&amp; (e.keyCode == 123 || (e.keyCode == 116 &amp;&amp; e.type!=&#x27;keypress&#x27;))) </span><br><span class="line">		&#123;</span><br><span class="line">			e.returnValue = false;</span><br><span class="line">			return (false);</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;</span><br><span class="line">&#125;</span><br><span class="line">unmouse()</span><br><span class="line">&lt;/script&gt;</span><br></pre></td></tr></table></figure><h4 id="6-10-星空背景"><a href="#6-10-星空背景" class="headerlink" title="6.10 星空背景"></a>6.10 星空背景</h4><ul><li><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/6a260bf6.html">星空和流星特效</a><br><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/202108121834269.gif"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/202108121834269.gif" alt="img"></a></li></ul><h4 id="6-11-动态分类条、标签条"><a href="#6-11-动态分类条、标签条" class="headerlink" title="6.11 动态分类条、标签条"></a>6.11 动态分类条、标签条</h4><ul><li><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/2bfb1caa.html">动态分类标签条，自动获取全站分类与标签进行展示</a></li></ul><h4 id="6-12-提取图片主题色并修改字体颜色"><a href="#6-12-提取图片主题色并修改字体颜色" class="headerlink" title="6.12 提取图片主题色并修改字体颜色"></a>6.12 提取图片主题色并修改字体颜色</h4><ul><li><a target="_blank" rel="noopener" href="https://blog.justlovesmile.top/posts/b16c0eda.html">如何提取图片主题色并自动选择标题字体颜色</a></li></ul><h3 id="7-高级魔改"><a href="#7-高级魔改" class="headerlink" title="7. 高级魔改"></a>7. 高级魔改</h3><h3 id="7-1-Github-Calendar"><a href="#7-1-Github-Calendar" class="headerlink" title="7.1 Github Calendar"></a>7.1 Github Calendar</h3><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20210208220529.png"><img src="" data-lazy-src="" alt="img"></a></p><p><a target="_blank" rel="noopener" href="https://akilar.top/posts/1f9c68c9/">Gitcalendar</a><br><a target="_blank" rel="noopener" href="https://zfe.space/post/6948.html">教程：基于Butterfly主题（去jquery）的gitcalendar3.0</a></p><h3 id="7-2-首页磁贴"><a href="#7-2-首页磁贴" class="headerlink" title="7.2 首页磁贴"></a>7.2 首页磁贴</h3><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20210208220855.png"><img src="" data-lazy-src="" alt="img"></a><br><a target="_blank" rel="noopener" href="https://akilar.top/posts/a9131002/">Akilar：Categories Magnet</a></p><h3 id="7-3-首页置顶轮播图"><a href="#7-3-首页置顶轮播图" class="headerlink" title="7.3 首页置顶轮播图"></a>7.3 首页置顶轮播图</h3><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20210208220928.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20210208220928.png" alt="img"></a></p><p><a target="_blank" rel="noopener" href="https://akilar.top/posts/8e1264d1/">Akilar：Slider Bar</a></p><h3 id="7-4-友链朋友圈"><a href="#7-4-友链朋友圈" class="headerlink" title="7.4 友链朋友圈"></a>7.4 友链朋友圈</h3><p><a target="_blank" rel="noopener" href="https://npm.elemecdn.com/justlovesmile-img/20220328133508.png"><img src="" data-lazy-src="https://npm.elemecdn.com/justlovesmile-img/20220328133508.png" alt="img"></a></p><h5 id="最后，本文章原创作者均来自网络。"><a href="#最后，本文章原创作者均来自网络。" class="headerlink" title="最后，本文章原创作者均来自网络。"></a>最后，本文章原创作者均来自网络。</h5></article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">本文作者:</span> <span class="post-copyright-info"><a href="https://webxc.eu.org">XC's Blog</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">本文链接:</span> <span class="post-copyright-info"><a href="https://webxc.eu.org/post/3340407448/">https://webxc.eu.org/post/3340407448/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明:</span> <span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://webxc.eu.org" target="_blank">XC's Blog</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/Hexo/">Hexo</a></div><div class="post_share"><div class="social-share" data-image="https://npm.elemecdn.com/webxc@1.0.0/cover/cover6.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://npm.elemecdn.com/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload='this.media="all"'><script src="https://npm.elemecdn.com/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="https://npm.elemecdn.com/webxc@1.0.0/lxfs/wechat.png" target="_blank"><img class="post-qr-code-img" src="https://npm.elemecdn.com/webxc@1.0.0/lxfs/wechat.png" alt="Wechat"></a><div class="post-qr-code-desc">Wechat</div></li><li class="reward-item"><a href="https://npm.elemecdn.com/webxc@1.0.0/lxfs/alipay.jpg" target="_blank"><img class="post-qr-code-img" src="https://npm.elemecdn.com/webxc@1.0.0/lxfs/alipay.jpg" alt="Alipay"></a><div class="post-qr-code-desc">Alipay</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/post/3032259293/"><img class="prev-cover" src="https://npm.elemecdn.com/webxc@1.0.0/cover/hexo2.jpg" onerror='onerror=null,src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇文章</div><div class="prev_info">Hexo相关</div></div></a></div><div class="next-post pull-right"><a href="/post/48588533/"><img class="next-cover" src="https://npm.elemecdn.com/webxc@1.0.0/cover/cover4.jpg" onerror='onerror=null,src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="cover of next post"><div class="pagination-info"><div class="label">下一篇文章</div><div class="next_info">使用Hexo和Github搭建个人博客</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/post/34/" title="Hexo Butterfly主题配置"><img class="cover" src="https://npm.elemecdn.com/webxc@1.0.0/cover/cover6.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-09-07</div><div class="title">Hexo Butterfly主题配置</div></div></a></div><div><a href="/post/3032259293/" title="Hexo相关"><img class="cover" src="https://npm.elemecdn.com/webxc@1.0.0/cover/hexo2.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-01-01</div><div class="title">Hexo相关</div></div></a></div><div><a href="/post/48588533/" title="使用Hexo和Github搭建个人博客"><img class="cover" src="https://npm.elemecdn.com/webxc@1.0.0/cover/cover4.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-01-05</div><div class="title">使用Hexo和Github搭建个人博客</div></div></a></div></div></div><hr><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i> <span>评论</span></div></div><div class="comment-wrap"><div><div id="twikoo-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg" onerror='this.onerror=null,this.src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="avatar"></div><div class="author-info__name">XC's Blog</div><div class="author-info__description">XC's Blog 记录生活和学习文章</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">95</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">25</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">25</div></a></div><div class="card-info-social-icons is-center"><a class="social-icon" href="https://tenapi.cn/qqzlk/?qq=2848141597" target="_blank" title="QQ"><i class="iconfont icon-QQ"></i></a><a class="social-icon" href="https://npm.elemecdn.com/webxc@1.0.0/lxfs/wechat.jpg" target="_blank" title="微信"><i class="iconfont icon-weixin"></i></a><a class="social-icon" href="https://github.com/web-xc" target="_blank" title="Github"><i class="iconfont icon-github"></i></a><a class="social-icon" href="https://space.bilibili.com/2134826455" target="_blank" title="BiliBili"><i class="iconfont icon-bilibili"></i></a><a class="social-icon" href="https://music.163.com/#/user/home?id=323682437" target="_blank" title="网易云音乐"><i class="iconfont icon-wyy"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">原网站因使用.ml域名被回收, 再加上本人因学习原因, 没怎么打理博客, 使用了https://webxc.eu.org域名来维持博客运行, 如果有加友联的朋友们, 去友联页看信息即可, 如果原来有加过的, 麻烦在原来域名后缀改一下(.ml ==> .eu.org)就行, 博客写的太乱了, 没时间打理, 兄弟们谅解😁😁~~</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#Hexo%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA%E8%B6%85%E7%BA%A7%E6%8C%87%E5%8D%97"><span class="toc-number">1.</span> <span class="toc-text">Hexo博客搭建超级指南</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2%E5%B7%A5%E4%BD%9C"><span class="toc-number">1.1.</span> <span class="toc-text">环境部署工作</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-1-%E5%AE%89%E8%A3%85Node-js"><span class="toc-number">1.2.</span> <span class="toc-text">2.1 安装Node.js</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-2-%E5%AE%89%E8%A3%85Git"><span class="toc-number">1.3.</span> <span class="toc-text">2.2 安装Git</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-3-%E6%B3%A8%E5%86%8CGithub%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.4.</span> <span class="toc-text">2.3 注册Github账号</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-4-%E5%AE%89%E8%A3%85Hexo"><span class="toc-number">1.5.</span> <span class="toc-text">2.4 安装Hexo</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-5-%E6%8E%A8%E9%80%81%E5%88%B0Github"><span class="toc-number">1.6.</span> <span class="toc-text">2.5 推送到Github</span></a></li></ol></li></ol><li class="toc-item toc-level-2"><a class="toc-link" href="#3-Hexo%E5%9F%BA%E7%A1%80"><span class="toc-number"></span> <span class="toc-text">3. Hexo基础</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#3-1-%E5%86%99%E5%8D%9A%E5%AE%A2"><span class="toc-number">1.</span> <span class="toc-text">3.1 写博客</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#3-2-%E6%96%B0%E5%BB%BA%E9%A1%B5%E9%9D%A2"><span class="toc-number">1.1.</span> <span class="toc-text">3.2 新建页面</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#3-3-%E5%B8%B8%E7%94%A8%E5%9F%BA%E6%9C%AC%E5%91%BD%E4%BB%A4"><span class="toc-number">1.2.</span> <span class="toc-text">3.3 常用基本命令</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-Hexo%E8%BF%9B%E9%98%B6"><span class="toc-number">1.3.</span> <span class="toc-text">4. Hexo进阶</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-1-%E6%8E%A8%E8%8D%90%E7%BC%96%E8%BE%91%E5%99%A8"><span class="toc-number">1.4.</span> <span class="toc-text">4.1 推荐编辑器</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-2-%E6%9B%B4%E6%8D%A2%E4%B8%BB%E9%A2%98"><span class="toc-number">1.5.</span> <span class="toc-text">4.2 更换主题</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-3-%E6%B3%A8%E5%86%8CCoding%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.6.</span> <span class="toc-text">4.3 注册Coding账号</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-4-%E6%B3%A8%E5%86%8CGitee%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.7.</span> <span class="toc-text">4.4 注册Gitee账号</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-5-%E7%BB%91%E5%AE%9A%E5%9F%9F%E5%90%8D"><span class="toc-number">1.8.</span> <span class="toc-text">4.5 绑定域名</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-6-%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6"><span class="toc-number">1.9.</span> <span class="toc-text">4.6 安装插件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-7-%E6%B7%BB%E5%8A%A0robots-txt"><span class="toc-number">1.10.</span> <span class="toc-text">4.7 添加robots.txt</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-8-%E5%88%9B%E5%BB%BA%E7%99%BE%E5%BA%A6%E7%AB%99%E9%95%BF%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.11.</span> <span class="toc-text">4.8 创建百度站长账号</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-9-%E5%88%9B%E5%BB%BA%E7%99%BE%E5%BA%A6-x2F-%E8%B0%B7%E6%AD%8C%E7%BB%9F%E8%AE%A1%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.12.</span> <span class="toc-text">4.9 创建百度&#x2F;谷歌统计账号</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#4-10-CDN%E5%9B%BE%E5%BA%8A"><span class="toc-number">1.13.</span> <span class="toc-text">4.10 CDN图床</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE%E6%80%BB%E7%BB%93"><span class="toc-number">2.</span> <span class="toc-text">5. 主题配置总结</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-1-Ayer%E4%B8%BB%E9%A2%98%E4%BF%AE%E6%94%B9%E2%80%93%E9%80%82%E7%94%A8ejs%E7%B1%BB%E5%9E%8B%E7%9A%84%E4%B8%BB%E9%A2%98"><span class="toc-number">3.</span> <span class="toc-text">5.1 Ayer主题修改–适用ejs类型的主题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-1-1-%E9%9A%8F%E6%9C%BA%E5%8D%9A%E5%AE%A2%E5%B0%81%E9%9D%A2"><span class="toc-number">4.</span> <span class="toc-text">5.1.1 随机博客封面</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-1-2-%E6%B7%BB%E5%8A%A0%E4%BA%8C%E7%BA%A7%E8%8F%9C%E5%8D%95"><span class="toc-number">5.</span> <span class="toc-text">5.1.2 添加二级菜单</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-1-3-%E6%B7%BB%E5%8A%A0%E5%85%AC%E5%91%8A%E6%9D%BF"><span class="toc-number">6.</span> <span class="toc-text">5.1.3 添加公告板</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-2-Butterfly%E4%B8%BB%E9%A2%98%E2%80%93%E9%80%82%E7%94%A8pug%E7%B1%BB%E5%9E%8B%E7%9A%84%E4%B8%BB%E9%A2%98"><span class="toc-number">7.</span> <span class="toc-text">5.2 Butterfly主题–适用pug类型的主题</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#6-%E4%B8%BB%E9%A2%98%E9%AD%94%E6%94%B9"><span class="toc-number"></span> <span class="toc-text">6. 主题魔改</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#6-1-%E9%A1%B5%E8%84%9A%E5%85%BB%E9%B1%BC%F0%9F%90%9F"><span class="toc-number">1.</span> <span class="toc-text">6.1 页脚养鱼🐟</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#6-2-valine%E8%AF%84%E8%AE%BA"><span class="toc-number">1.1.</span> <span class="toc-text">6.2 valine评论</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-3-%E5%8D%9A%E5%AE%A2%E6%96%87%E7%AB%A0%E5%8A%A0%E5%AF%86"><span class="toc-number">1.2.</span> <span class="toc-text">6.3 博客文章加密</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-4-%E6%89%93%E5%AD%97%E6%9C%BA%E6%95%88%E6%9E%9C"><span class="toc-number">1.3.</span> <span class="toc-text">6.4 打字机效果</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-5-%E5%9B%BE%E6%A0%87%EF%BC%8C%E5%8A%A8%E6%80%81%E5%9B%BE%E6%A0%87%EF%BC%8C%E7%BD%91%E9%A1%B5%E8%BF%90%E8%A1%8C%E6%97%B6%E9%97%B4%EF%BC%8C%E5%85%A8%E7%AB%99%E9%BB%91%E7%99%BD%EF%BC%8C%E9%BC%A0%E6%A0%87%E7%82%B9%E5%87%BB%E7%89%B9%E6%95%88%EF%BC%8C%E7%BD%91%E9%A1%B5%E5%8A%A8%E6%80%81%E6%A0%87%E9%A2%98%EF%BC%8C%E6%A8%B1%E8%8A%B1%EF%BC%8C%E9%9F%B3%E6%95%88"><span class="toc-number">1.4.</span> <span class="toc-text">6.5 图标，动态图标，网页运行时间，全站黑白，鼠标点击特效，网页动态标题，樱花，音效</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-6-%E6%97%8B%E8%BD%AC%E5%B0%8F%E4%BA%BA%EF%BC%8C%E6%AF%8F%E6%97%A5%E8%AF%97%E5%8F%A5"><span class="toc-number">1.5.</span> <span class="toc-text">6.6 旋转小人，每日诗句</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-7-%E5%B1%95%E7%A4%BApdf"><span class="toc-number">1.6.</span> <span class="toc-text">6.7 展示pdf</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-8-%E6%8F%92%E4%BB%B6%E6%B1%87%E6%80%BB"><span class="toc-number">1.7.</span> <span class="toc-text">6.8 插件汇总</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-9-%E5%89%8D%E7%AB%AF%E7%A6%81%E6%AD%A2%E5%8F%B3%E9%94%AE%EF%BC%8CF12%EF%BC%8CF5"><span class="toc-number">1.8.</span> <span class="toc-text">6.9 前端禁止右键，F12，F5</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-10-%E6%98%9F%E7%A9%BA%E8%83%8C%E6%99%AF"><span class="toc-number">1.9.</span> <span class="toc-text">6.10 星空背景</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-11-%E5%8A%A8%E6%80%81%E5%88%86%E7%B1%BB%E6%9D%A1%E3%80%81%E6%A0%87%E7%AD%BE%E6%9D%A1"><span class="toc-number">1.10.</span> <span class="toc-text">6.11 动态分类条、标签条</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#6-12-%E6%8F%90%E5%8F%96%E5%9B%BE%E7%89%87%E4%B8%BB%E9%A2%98%E8%89%B2%E5%B9%B6%E4%BF%AE%E6%94%B9%E5%AD%97%E4%BD%93%E9%A2%9C%E8%89%B2"><span class="toc-number">1.11.</span> <span class="toc-text">6.12 提取图片主题色并修改字体颜色</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-%E9%AB%98%E7%BA%A7%E9%AD%94%E6%94%B9"><span class="toc-number">2.</span> <span class="toc-text">7. 高级魔改</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-1-Github-Calendar"><span class="toc-number">3.</span> <span class="toc-text">7.1 Github Calendar</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-2-%E9%A6%96%E9%A1%B5%E7%A3%81%E8%B4%B4"><span class="toc-number">4.</span> <span class="toc-text">7.2 首页磁贴</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-3-%E9%A6%96%E9%A1%B5%E7%BD%AE%E9%A1%B6%E8%BD%AE%E6%92%AD%E5%9B%BE"><span class="toc-number">5.</span> <span class="toc-text">7.3 首页置顶轮播图</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#7-4-%E5%8F%8B%E9%93%BE%E6%9C%8B%E5%8F%8B%E5%9C%88"><span class="toc-number">6.</span> <span class="toc-text">7.4 友链朋友圈</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E6%9C%80%E5%90%8E%EF%BC%8C%E6%9C%AC%E6%96%87%E7%AB%A0%E5%8E%9F%E5%88%9B%E4%BD%9C%E8%80%85%E5%9D%87%E6%9D%A5%E8%87%AA%E7%BD%91%E7%BB%9C%E3%80%82"><span class="toc-number">6.0.1.</span> <span class="toc-text">最后，本文章原创作者均来自网络。</span></a></li></ol></li></ol></li></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/post/ds2s/" title="整个前端面试题"><img src="https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png" onerror='this.onerror=null,this.src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="整个前端面试题"></a><div class="content"><a class="title" href="/post/ds2s/" title="整个前端面试题">整个前端面试题</a><time datetime="2023-08-31T02:00:00.000Z" title="发表于 2023-08-31 02:00:00">2023-08-31</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/ds23/" title="常见前端面试题"><img src="https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png" onerror='this.onerror=null,this.src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="常见前端面试题"></a><div class="content"><a class="title" href="/post/ds23/" title="常见前端面试题">常见前端面试题</a><time datetime="2023-08-28T18:30:00.000Z" title="发表于 2023-08-28 18:30:00">2023-08-28</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/fe33/" title="硅谷甄选运营平台"><img src="https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png" onerror='this.onerror=null,this.src="https://npm.elemecdn.com/webxc@1.0.2/banner/404.gif"' alt="硅谷甄选运营平台"></a><div class="content"><a class="title" href="/post/fe33/" title="硅谷甄选运营平台">硅谷甄选运营平台</a><time datetime="2023-07-26T03:55:00.000Z" title="发表于 2023-07-26 03:55:00">2023-07-26</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2021 - 2023 By XC's Blog</div><div class="framework-info"><span></span> <a target="_blank" rel="noopener" href="https://icp.gov.moe/?keyword=20235221">萌ICP备20235221号</a><span class="footer-separator">|</span><span></span> <a target="_blank" rel="noopener" href="https://icp.gov.moe/">萌ICP查询</a><div id="running-time"></div></div><script>setInterval((()=>{let e=Math.round(new Date("2021-11-21 01:35:06").getTime()/1e3),t=Math.round(((new Date).getTime()+288e5)/1e3)-e,n=new Array(0,0,0,0,0);t>=31536e3&&(n[0]=parseInt(t/31536e3),t%=31536e3),t>=86400&&(n[1]=parseInt(t/86400),t%=86400),t>=3600&&(n[2]=parseInt(t/3600),t%=3600),t>=60&&(n[3]=parseInt(t/60),t%=60),t>0&&(n[4]=t),currentTimeHtml="本站已安全运行 "+n[0]+" 年 "+n[1]+" 天 "+n[2]+" 时 "+n[3]+" 分 "+n[4]+" 秒",document.getElementById("running-time").innerHTML=currentTimeHtml}),1e3)</script></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i><span id="percent">0<span>%</span></span></button><button id="go-down" type="button" title="直达底部" onclick="btf.scrollToDest(document.body.scrollHeight,500)"><i class="fas fa-arrow-down"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i> <span>正在载入文件,请稍后</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"></div></div><hr><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="https://npm.elemecdn.com/hexo-theme-butterfly/source/js/utils.js"></script><script src="https://npm.elemecdn.com/hexo-theme-butterfly@4.4.0/source/js/main.js"></script><script src="https://npm.elemecdn.com/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="https://npm.elemecdn.com/instant.page/instantpage.js" type="module"></script><script src="https://npm.elemecdn.com/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="https://npm.elemecdn.com/node-snackbar/dist/snackbar.min.js"></script><script src="https://npm.elemecdn.com/hexo-theme-butterfly/source/js/search/local-search.js"></script><div class="js-pjax"><script>(()=>{const e=document.querySelectorAll("#article-container .mermaid-wrap");if(e.length){window.runMermaid=()=>{window.loadMermaid=!0;const t="dark"===document.documentElement.getAttribute("data-theme")?"dark":"default";Array.from(e).forEach(((e,n)=>{const d=e.firstElementChild,r="mermaid-"+n,m="%%{init:{ 'theme':'"+t+"'}}%%\n"+d.textContent;mermaid.mermaidAPI.render(r,m,(e=>{d.insertAdjacentHTML("afterend",e)}))}))};const t=()=>{window.loadMermaid?runMermaid():getScript("https://npm.elemecdn.com/mermaid/dist/mermaid.min.js").then(runMermaid)};window.pjax?t():document.addEventListener("DOMContentLoaded",t)}})()</script><script>(()=>{const o=()=>{twikoo.init(Object.assign({el:"#twikoo-wrap",envId:"https://blog2.webxc.eu.org/",region:"",onCommentLoaded:function(){btf.loadLightbox(document.querySelectorAll("#twikoo .tk-content img:not(.tk-owo-emotion)"))}},null))},t=()=>{"object"!=typeof twikoo?getScript("https://npm.elemecdn.com/twikoo@1.6.16/dist/twikoo.all.min.js").then(o):setTimeout(o,0)};t()})()</script></div><script data-pjax="false" defer src="https://npm.elemecdn.com/webxc@1.0.16/css/style.js"></script><script defer src="https://npm.elemecdn.com/hexo-theme-butterfly@4.4.0/source/js/search/local-search.js"></scrip><script src="https://npm.elemecdn.com/butterfly-extsrc/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful=!0,POWERMODE.shake=!0,POWERMODE.mobile=!0,document.body.addEventListener("input",POWERMODE)</script><script src="https://npm.elemecdn.com/pjax@0.2.8/pjax.min.js"></script><script>let pjaxSelectors=["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax",".tk-comments-container"];var pjax=new Pjax({elements:'a:not([target="_blank"])',selectors:pjaxSelectors,cacheBust:!1,analytics:!1,scrollRestoration:!1});document.addEventListener("pjax:send",(function(){if(window.tocScrollFn&&window.removeEventListener("scroll",window.tocScrollFn),window.scrollCollect&&window.removeEventListener("scroll",scrollCollect),"object"==typeof preloader&&preloader.initLoading(),document.getElementById("rightside").style.cssText="opacity: ''; transform: ''",window.aplayers)for(let e=0;e<window.aplayers.length;e++)window.aplayers[e].options.fixed||window.aplayers[e].destroy();"object"==typeof typed&&typed.destroy();const e=document.body.classList;e.contains("read-mode")&&e.remove("read-mode"),"object"==typeof disqusjs&&disqusjs.destroy()})),document.addEventListener("pjax:complete",(function(){window.refreshFn(),document.querySelectorAll("script[data-pjax]").forEach((e=>{const t=document.createElement("script"),o=e.text||e.textContent||e.innerHTML||"";Array.from(e.attributes).forEach((e=>t.setAttribute(e.name,e.value))),t.appendChild(document.createTextNode(o)),e.parentNode.replaceChild(t,e)})),GLOBAL_CONFIG.islazyload&&window.lazyLoadInstance.update(),"function"==typeof chatBtnFn&&chatBtnFn(),"function"==typeof panguInit&&panguInit(),"function"==typeof gtag&&gtag("config","",{page_path:window.location.pathname}),"object"==typeof _hmt&&_hmt.push(["_trackPageview",window.location.pathname]),"function"==typeof loadMeting&&document.getElementsByClassName("aplayer").length&&loadMeting(),"object"==typeof Prism&&Prism.highlightAll(),"object"==typeof preloader&&preloader.endLoading()})),document.addEventListener("pjax:error",(e=>{404===e.request.status&&pjax.loadUrl("/404.html")}))</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script data-pjax>function butterfly_swiper_injector_config(){var s=document.getElementById("recent-posts");console.log("已挂载butterfly_swiper"),s.insertAdjacentHTML("afterbegin",'<div class="recent-post-item" style="height: auto;width: 100%"><div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container"><div class="blog-slider__wrp swiper-wrapper" style="transition-duration: 0ms;"><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-08-31</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/ds2s/&quot;);" href="javascript:void(0);" alt="">整个前端面试题</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-08-28</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/ds23/&quot;);" href="javascript:void(0);" alt="">常见前端面试题</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-07-26</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/fe33/&quot;);" href="javascript:void(0);" alt="">硅谷甄选运营平台</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-07-17</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/ew32/&quot;);" href="javascript:void(0);" alt="">Vue第三天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-07-16</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/aw92/&quot;);" href="javascript:void(0);" alt="">Vue第二天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-07-14</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/ou67/&quot;);" href="javascript:void(0);" alt="">Vue第一天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/vue.png);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-07-05</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/fn32/&quot;);" href="javascript:void(0);" alt="">Vue框架笔记</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc/cover/js1.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-06-21</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/fe11/&quot;);" href="javascript:void(0);" alt="">Vue前置JS功底</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/promise.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-06-11</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/pr67/&quot;);" href="javascript:void(0);" alt="">ES6-Promise语法与原理</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/ajax.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-06-08</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/or01/&quot;);" href="javascript:void(0);" alt="">Ajax第四天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://cdn1.tianli0.top/gh/web-xc/iMG/postss/ajax.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-06-07</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/fs67/&quot;);" href="javascript:void(0);" alt="">Ajax第三天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc/cover/js1.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-05-11</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/fe66/&quot;);" href="javascript:void(0);" alt="">JS进阶第四天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc/cover/js1.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-05-10</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/fe99/&quot;);" href="javascript:void(0);" alt="">JS进阶第三天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc/cover/js1.webp);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2023-05-05</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/us87/&quot;);" href="javascript:void(0);" alt="">JS进阶第二天</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc@1.0.12/cover/cover15.jpg);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2022-10-31</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/2db5/&quot;);" href="javascript:void(0);" alt="">移动开发-Flex布局</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc@1.0.12/cover/cover16.jpg);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2022-11-14</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/1c7e/&quot;);" href="javascript:void(0);" alt="">移动开发-媒体查询</a><div class="blog-slider__text">点击查看</div></div></div><div class="blog-slider__item swiper-slide" style="background:url(https://npm.elemecdn.com/webxc@1.0.12/cover/cover17.jpg);border-radius:12px;opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><div class="blog-slider__content"><span class="blog-slider__code">2022-11-17</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;post/7fc/&quot;);" href="javascript:void(0);" alt="">移动开发-响应式</a><div class="blog-slider__text">点击查看</div></div></div></div><div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div><div class="swiper-button-prev"></div><div class="swiper-button-next"></div></div></div>')}for(var elist="null".split(","),cpage=location.pathname,epage="all",flag=0,i=0;i<elist.length;i++)cpage.includes(elist[i])&&flag++;("all"===epage&&0==flag||epage===cpage)&&butterfly_swiper_injector_config()</script><script defer src="https://npm.elemecdn.com/webxc@1.0.12/css/swiper/swiper.min.js"></script><script defer data-pjax src="https://npm.elemecdn.com/webxc@1.0.12/css/swiper/swiper_init.js"></script></body></html>